package com.neudu.glsb.service;

import com.neudu.glsb.pojo.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import io.lettuce.core.dynamic.annotation.Param;

import java.math.BigDecimal;

/**
* @author Lenovo
* @description 针对表【member】的数据库操作Service
* @createDate 2025-10-20 10:23:17
*/
public interface MemberService extends IService<Member> {

    // 充值：id改为Integer类型
    boolean recharge(Integer id, BigDecimal amount);
    // 积分兑换：id改为Integer类型
    boolean exchangePoints(Integer id, Integer points);


    boolean addPoints(Integer memberId, Integer points);
    // 退会员（新增）
    boolean cancelMember(Integer id);

}